export default {
    data() {
        return {
            info: {
                isshow: false,
                isAdd: true
            }
        }
    },
    methods: {
        //2.点了添加
        willAdd() {
            this.info = {
                isshow: true,
                isAdd: true,
            };
        },
        //6.点了编辑
        willEdit(id) {
            this.info = {
                isshow: true,
                isAdd: false,
            };
            //通知form调用getOne
            this.$refs.form.getOne(id)
        },
    }
}